package com.example.myapplication.data.realm

import io.realm.DynamicRealm
import io.realm.RealmMigration

/**
 * 描    述：升级数据库
 * 作    者：fantianwen
 * 时    间：2019/2/14  3:55 PM
 */
class Migration : RealmMigration {

    override fun migrate(realm: DynamicRealm, oldVersion: Long, newVersion: Long) {

        RealmUtils.oldVersion = oldVersion

        val schema = realm.schema

        println("newVersion=$newVersion")

//

    }

}